package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单管理对象 tb_order
 * 
 * @author ruoyi
 * @date 2023-03-04
 */
public class TbOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNumber;

    /** 状态，0表示开通中，1表示开通成功,2表示已退款，3表示已结束 */
    @Excel(name = "状态，0表示开通中，1表示开通成功,2表示已退款，3表示已结束")
    private Integer status;

    /** ICCID */
    @Excel(name = "ICCID")
    private String iccid;

    /** 套餐名称 */
    @Excel(name = "套餐名称")
    private String packageName;

    /** 交易类型,0表示充值订单，1表示线下交易 */
    @Excel(name = "交易类型,0表示充值订单，1表示线下交易")
    private Integer transactionType;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private BigDecimal transactionAmount;

    /** 经销商ID */
    @Excel(name = "经销商ID")
    private Long userId;

    /** 卡片ID */
    @Excel(name = "卡片ID")
    private Long cardId;

    /** 套餐ID */
    @Excel(name = "套餐ID")
    private Long packageId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setIccid(String iccid) 
    {
        this.iccid = iccid;
    }

    public String getIccid() 
    {
        return iccid;
    }
    public void setPackageName(String packageName) 
    {
        this.packageName = packageName;
    }

    public String getPackageName() 
    {
        return packageName;
    }
    public void setTransactionType(Integer transactionType) 
    {
        this.transactionType = transactionType;
    }

    public Integer getTransactionType() 
    {
        return transactionType;
    }
    public void setTransactionAmount(BigDecimal transactionAmount) 
    {
        this.transactionAmount = transactionAmount;
    }

    public BigDecimal getTransactionAmount() 
    {
        return transactionAmount;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCardId(Long cardId) 
    {
        this.cardId = cardId;
    }

    public Long getCardId() 
    {
        return cardId;
    }
    public void setPackageId(Long packageId) 
    {
        this.packageId = packageId;
    }

    public Long getPackageId() 
    {
        return packageId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNumber", getOrderNumber())
            .append("status", getStatus())
            .append("iccid", getIccid())
            .append("packageName", getPackageName())
            .append("transactionType", getTransactionType())
            .append("transactionAmount", getTransactionAmount())
            .append("userId", getUserId())
            .append("cardId", getCardId())
            .append("packageId", getPackageId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
